
package cn.edu.scau.cmi.hombio.dao;

import cn.edu.scau.cmi.hombio.domain.CurePig;

import java.util.Calendar;
import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;

import org.springframework.dao.DataAccessException;

/**
 * DAO to manage CurePig entities.
 * 
 */
public interface CurePigDAO extends JpaDao<CurePig> {

	/**
	 * JPQL Query - findCurePigByMemoContaining
	 *
	 */
	public Set<CurePig> findCurePigByMemoContaining(String memo) throws DataAccessException;

	/**
	 * JPQL Query - findCurePigByMemoContaining
	 *
	 */
	public Set<CurePig> findCurePigByMemoContaining(String memo, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAllCurePigs
	 *
	 */
	public Set<CurePig> findAllCurePigs() throws DataAccessException;

	/**
	 * JPQL Query - findAllCurePigs
	 *
	 */
	public Set<CurePig> findAllCurePigs(int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findCurePigById
	 *
	 */
	public CurePig findCurePigById(Integer id) throws DataAccessException;

	/**
	 * JPQL Query - findCurePigById
	 *
	 */
	public CurePig findCurePigById(Integer id, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findCurePigByCureTime
	 *
	 */
	public Set<CurePig> findCurePigByCureTime(java.util.Calendar cureTime) throws DataAccessException;

	/**
	 * JPQL Query - findCurePigByCureTime
	 *
	 */
	public Set<CurePig> findCurePigByCureTime(Calendar cureTime, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findCurePigByMemo
	 *
	 */
	public Set<CurePig> findCurePigByMemo(String memo_1) throws DataAccessException;

	/**
	 * JPQL Query - findCurePigByMemo
	 *
	 */
	public Set<CurePig> findCurePigByMemo(String memo_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findCurePigByPrimaryKey
	 *
	 */
	public CurePig findCurePigByPrimaryKey(Integer id_1) throws DataAccessException;

	/**
	 * JPQL Query - findCurePigByPrimaryKey
	 *
	 */
	public CurePig findCurePigByPrimaryKey(Integer id_1, int startResult, int maxRows) throws DataAccessException;

}